/**
 * 
 */
package example.common;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

/**
 * Action para cambiar de idioma
 * @author icasado
 *
 */
public class ChangeLocale extends ActionSupport{
	
	/** 
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Override
	public String execute() throws Exception {
		
		// prueba de inserci�n de atributos en request.
		HttpServletRequest request =
			ServletActionContext.getRequest();
		request.setAttribute("request_locale", "HOLA");
		return "login";
	}

}
